
/**
 * Settings used to plot the surface
 * @author Narendra J. Mondal
 * @date 15.01.2012
 */
package plotter;

import java.awt.*;

class PlotSettings
{
	// whether eqn is parametric
	public boolean isparametric;
	
	// eqns of surfaces; only the first is used when cartesian
	public String eqn1, eqn2, eqn3;
	
	// plot ranges
	public double xmin, xmax, ymin, ymax;
	
	// whetther to fill surface(or draw as wire-frame)
	public boolean fillsurface, drawaxes;
	
	// bkgnd color of surface
	public Color bkcolor;
	
	// color of grid(wire of wire-frame) 
	public Color gridcolor;
	
	// two surface colors; one is used as front color & other as back color
	public Color surface1;
	public Color surface2;
	
	public PlotSettings() {
		isparametric = true;
		
		eqn1 = "sin(u)*cos(v)\n";
		eqn2 = "sin(u)*sin(v)\n";
		eqn3 = "cos(u)+sin(u)\n";
		
		xmin = 0;
		xmax = 3.14;
		
		ymin = -3.14;
		ymax = 3.14;
		
		
		
		fillsurface = drawaxes = true;
		bkcolor = Color.WHITE;
		gridcolor = Color.BLACK;
		surface1 = new Color(255, 255, 128);
		surface2 = new Color(0, 200, 0);
	}
}
